Add channel locking for channel snapshot creation.