Passing locked connections by reference #554