You can get this data from LockFile.  Before we call lf.write above, add this line:

  lf.setNeedStatInformation(true);

Then after lf.commit() was successful you can use:

  lastModified = lf.getCommitLastModified()