Use an original Apple Lightning cable. Aftermarket cables often fail during the RAMDisk boot stage.
Before using a patched unlock tool for iPhone 7 (2n61ap): loader for iphone7 2n61ap not found unlocktool patched
Close UnlockTool and relaunch it to let it check for the latest server-side updates. Use an original Apple Lightning cable