advfs: convert lk_waiters and lk_get_state from macros to functions