Default [Q] Re-Lock Bootloader

I was wandering if there is a way to relock the bootloader, so if my phone bricks, or presents any sort of problems in the future, i can still get the warranty support