locks: remove lock_may_read and lock_may_write