Use a lock file rather than a named mutex

Making named mutexes work in mono requires enabling shared memory
which is not an ideal solution.