Fix multiprocess handling of file/loader queues.

Here's your first pull request!