Thanks to the following people for help with lockfile.

  Konstantin Veretennicov
  Scott Dial
