Don't set pointer if add_lock_callback used.