Fixed: autolock and unlock operators when exit.