w1: keep balance of mutex locks and refcnts