Remove race possibilities from slip mode

I think this was causing https://bugs.launchpad.net/mixxx/+bug/1362394, and I know for sure there were races in this code, so even if it doesn't fix that bug it's an improvement.
This is called from any thread due to the direct connection, right? Can you comment this?