Add support for doing lockdown.
Read unlocked status in bootloader mode.
Merge branch 'lockdown'