tunnel modules: Fix threading issues
The old tunnel modules switched wrongly between main thread and I/O-thread while the new tunnel modules sent unnecessary messages to the main thread. Also the module could be unloaded while the timer was running, which crashed PA when the timer expired.