LOCKFUN
LOCKFUN(DESTROYHELD, "destroy lock while held", 0,
LOCKFUN(DOUBLEFREE, "free lock twice", 0,
LOCKFUN(DOUBLEINIT, "init lock twice", 1,
LOCKFUN(MEMFREE, "free memory active lock is in", 1,
LOCKFUN(MTX, "locking-against-self mutex", 0,
LOCKFUN(RWDOUBLEX, "locking-against-self exclusive rwlock", 0,
LOCKFUN(RWRX, "rw: first shared, then exclusive", 1,
LOCKFUN(RWXR, "rw: first execusive, then shared", 0,