You do not need to unlock your bootloader to flash official stock firmware.
Extract the Newflasher executable into the same folder where your downloaded firmware files are located. download newflasher v20 best
To avoid errors, many guides suggest deleting .ta files from the main firmware folder and the boot subfolder before running the tool. You do not need to unlock your bootloader