channel locking: Add locking for channel snapshot creation