Locking you bootloader shouldn't cause a soft brick, and the command isn't very important, it just reboots the device
It is possible your particular model doesn't like to be relocked for some reason but i haven't seen that before
And relocking is just for security purposes, so if someone got...