Simplify locking of callback results