ditch the priority inheritance locks; use malloc's version of lock