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

...er for testing.
Sorry, but one more thing. I think there should be a newline here.