If your phone was in hands of police you better sell it anyway because they could install a physical GPS tracker, etc. So locked bootloader doesn't change much.
Also if you live in a truly democratic country you don't even need to set the PIN code - your rights are protected by the law.