You can use a SELECT... FOR UPDATE statement to lock a row without actually changing it