Install missing header files
Import and use subr_lock.c
CONDVAR(9): Use lock class