Add lock and unlock properties support cocos2dx