Add support to unlock. TODO: Server unlocking in stub