When the second client trys to unlock the records in the database, notice how the Thread ID changes,
so the lock logic doesn't think the second client owns the records previously locked.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton