mutex write connection, but not read