Make the connection a read-write mutex instead of a regular one.