In the past One Plus allowed to lock the bootloader for custom ROMs. This is a important security feature! Lately some updates removed this feature [0, 1] for a lot of devices.
Please restore this functionality!
[0] https://calyxos.org/news/2022/07/06/oneplus-android-12-relock-issue/
[1] Divested-Mobile/DivestOS-Build#167