Tartaros: Updated write-lock file testing to write-lock instead of read-lock.