Separate threads for sending files

MT is back! This time we try one thread per outgoing transfer, this
should make it easier to get it thread-safe.