Fix windows tests

LockFileTest was using a Windows-incompatible method for verifying that the lock file on disk owned to the correct LockFile instance, as well as some line-feed differences that broke equality tests.