A Proof of concept patch that 'fixes' #67

- I made various attempts to get flock working properly on windows for sinopia.
  They all seem to result in the process ending un-expctedly :/
- So in the short term this patch does seem to address a bunch of realworld issues people are seeing, however
  it also causes 3 new test breaks, so I doubt you want to actually merge it.

If I have time to cycle back to this problem I might look at re-jigging it
again