The item code had a manual comparison of lock modes when testing if a given access was protected by a held lock. Let's offer a proper interface from the lock code. Signed-off-by: Zach Brown <zab@versity.com>