KRACOEUS-8181: convenient way to clear pessimistic locks to make it easier for testing.
KRACOEUS-8181: code review comments
Merge pull request #979 from leoherbie/lock_enhancement

KRACOEUS-8181: convenient way to clear pessimistic locks to make it easi...