mutex: abstract out cond/lock pshared init