Updated the implementations of nx_mutex and nx_wait_condition for unix systems.