KRACOEUS-7536:fixes issues with pessimistic locks not being honored