What is the purpose of padlock when Bluetooth Preferences is opened from the debug menu?
That prevents turning off the bluetooth card.

It locks the "Turn Off" button with your password [admin users only]. So the bluetooth card cannot be disabled, unless you click the lock again and input your user password (considering you are an admin user) or any other username/password with admin privileges.