add synchronize() method like Ruby's Mutex API

add Lockfile#synchronize() method; like Ruby's Mutex API