embed mutex in ref