Add a mutex to channel opening