A precision: reflashing the device will unlock the device but won't clear the lock code. there's a procedure here to retrieve the lost code, so that you can change it to something else, but for that you will need to have access either via SSH or to an xterm on the device. Standard disclaimer: Use the script at your own risk, of course