fix a pid-file race condition