Build fix for Linux (oops)
Fix a potential deadlock in ApiClient::Disconnect

refs #6724