Comment by amaccuish
It should be said though that only Pixel, Fairphone, and maybe some Motorolas support relocking the bootloader with a custom OS.
Without that ability, anyone can plug in to your phone and write whatever they want to the internal flash and your phone will be none the wiser.
The OnePlus6T supports it, it will still display a warning but it will be locked.