It is! First flash stock firmware if you can find the exact one! Then re lock boot loader with adb shell.
Bat tricky part is to find original firmware!
& I don't know if there will be binary left overs (su, recovery) this way if there are you need to get rid of them!
Is it the correct way?