Question [Q]Reflash stock rom

Is there any tool that will reinstall the stock rom on a Nexus 5 with LOCKED bootloader? Something like emergency reflash from LG Support Tool.