More ToUserDevice nits

This fixes a pair of races and a memory leak, all related to having a ToUserDevice/FromUserDevice open when the /click/config is reloaded.
Weird to have this generic class defined in linuxmodule/touserdevice.cc. But I can deal.