Ah, so, not about having to hold the lock but not holding the lock at a later point.     My personal style would explicitly unlock the lock before calling the callback then: this makes  the intention more explicit and avoids more complicated duplication ... OK?