Lock method according to options, is huskies framework's middle.