Possibly fix locking and STM issues whilst removing un-needed complexity from writer daemon
Fix subtle concurrency issue with an mvar released between poll and recv. There's stil something wrong but that's another day's problem.
Merge branch 'master' into 'wip/remove-thread-mess'