unless the only thing you are trying to protect with your lock is access to other rows in the same postgresql server