K 10 svn:author V 7 davidxu K 8 svn:date V 27 2013-02-17T02:52:42.354361Z K 7 svn:log V 215 Make more code be protected by internal mutex, and now it is fork-safe, in error case, the file exclusive lock is now released as soon as possible, in previous code, child process can still hold the exclusive lock. END