smbd: Restructure brl_get_locks_readonly