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

...er for testing.