lockd: more abstraction