Add support for API v2, always set unlocked true if require unlock is false, add getter for gesture duration
Emited a lockedEvent is lockAfterPose is on