Move socket.accept() to separate thread