1.7 Lock a callback list in its current state. Using callbacks.lock() to lock a callback list to avoid further changes being made to the list state: