add Lock/UnLock in init/finish