Bug 940054: Make flash.sh check its arguments more carefully.
Bug 940054: Also check the unlock/nounlock argument to flash_fastboot.