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.