Mind if I ask which Youtube video you used?
That firmware zip you mentioned does not seem suitable for locking the bootloader (if it's a TWRP flashable zip as implied in the name, you cannot lock your bootloader with that). I would recommend getting the stock Oreo firmware from here
https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 In addition, you could either download the OEM lock script as mentioned in that thread (it's separate to the firmware usually) or use the listed commands in the thread's procedure to lock your bootloader. I've used this firmware and those commands to re-lock my XT1642 (on the retgb software channel).
Whilst you're downloading the above firmware, also you may wish to root your device with magisk (you will have to temporarily boot into TWRP and flash magisk), which might also activate your OEM unlocking toggle. Ensure you're also signed into your Google account on your device. That should hopefully enable your OEM unlocking toggle and then permit your device's bootloader to be lockable again.