Avoid locking while doing callback.