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

...er for testing.
Where does this method ensure that only those users who are authorised to clear locks can perform this function?  There's a specific permission for clearing locks.  All users should be able to clear their own, still.