Hi! It is possible to flash the stock firmware even if the bootloader is locked, but it may require some additional steps. Here's a guide on how to do it:
1. Download the Razer Phone 2 firmware from a trusted source and save it on your computer.
2. Install the necessary drivers for your phone on your computer.
3. Boot your phone into Fastboot mode by turning it off, then holding down the Volume Down and Power buttons simultaneously until the Fastboot screen appears.
4. Connect your phone to your computer via USB cable.
5. Open a command prompt window on your computer and navigate to the folder where you saved the firmware.
6. In the command prompt window, type "fastboot devices" to confirm that your phone is detected.
7. Type "fastboot oem unlock" to unlock the bootloader. This will erase all data on your phone, so make sure to back up any important files.
8. Once the bootloader is unlocked, type "fastboot flash system system.img" to flash the stock firmware onto your phone.
9. Wait for the process to complete, then reboot your phone.
Note: This process may void your warranty and could potentially brick your phone if not done correctly. Proceed with caution and at your own risk.
I hope this helps! Let me know if you have any other questions or concerns.