fix: add test-only LockFile::read_pid for cross-platform testing
#316
+23
−7
LockFile::read_pid for cross-platform testing
#316