Test the wire_lock_wait_clear function