Make a connection work as a mutex if desired, which can turn out to be
very helpful.