Got it sorted with the help of an expert. Apparently you must not lock the boot loader on a OnePlus phone.
For reference: [LIST] Devices where bootloader can be relocked