Is there a reason not to reuse https://github.com/projectkudu/kudu/blob/master/Kudu.Core/Infrastructure/LockFile.cs