Shalom Reynaldo,
The context lends to 'something else'. It was the custom of the surrounding nations to shave their heads in a certain manner in obeisance to other gods and possibly as a manner of grieving for the dead. By taking on the manners of the surrounding nations, they defiled themselves, became common and no longer Holy to Him.
Lev 19:27 KJV
(27) Ye shall not round the corners of your heads, neither shalt thou mar the corners of thy beard.
When you find a scripture that causes you to stop, like the one above, consider the context of the surrounding verses and the chapter. You'll find that at the beginning of the chapter YHVH is speaking on the manner of recognizing and honoring only HIM.
Lev 19:1-4 KJV
(1) And the LORD spake unto Moses, saying,
(2) Speak unto all the congregation of the children of Israel, and say unto them, Ye shall be holy: for I the LORD your God am holy.
(3) Ye shall fear every man his mother, and his father, and keep my sabbaths: I am the LORD your God.
(4) Turn ye not unto idols, nor make to yourselves molten gods: I am the LORD your God.
The chapter is about not becoming like the surrounding nations and adopting their customs as well as being holy to God. His instructions included on manners in which people would become profane or common, 'unclean' if you will.
The state of 'uncleanness' happens to everyone naturally, for women it's menses and for men it's when they spill their seed (accidentally or nor), it could be touching a dead body or coming into contact with someone else who is unclean.
Scripture gives instructions on how to come into 'clean' again and might include one or several of the following; bathing, waiting till nightfall, waiting a prescribed number of days, burning clothes and bedding, shaving all hair off and even up to sacrifices at the temple.
The way to know what to do would be to examine each case for itself; was the act of becoming unclean natural, non-deliberate, a result of sickness, or intentional. For some cases, a priest would be called in to direct the 'unclean' person towards 'clean' again. For some, the method of achieving 'clean' was standard (as in the case of women and menses).
It's a subject that has many applications still today in spite of not have the Temple and the Altar on which to make sacrifices.
Still, YHVH set up a system that included the Temple and the Altar as well as priests and judges to direct the steps of His people.
Because there is no Temple Service, Altar or Priests which are required components for carrying out, at least in part, some means of becoming clean, people have to decide for themselves how much they can adhere to these laws and ironically, not find themselves outside the law in doing so. For example, we can't sacrifice because there is no Altar, but we can still offer up the "calves of our lips" in prayers.
Hos 14:2 KJV
(2) Take with you words, and turn to the LORD: say unto him, Take away all iniquity, and receive us graciously: so will we render the calves of our lips.
In the end, we are to strive towards becoming what YHVH teaches us, to become like Him and to love Him with our everything
The chapter then ends with the admonishment/command to heed the words He's written for the sanctification of the people. It was/is important to be in a state of 'clean' and 'holy'. Keep in mind though, that He knew we would be in situations of 'unclean', that is not to mean dirty, simply that one is not in a state (temporarily) of 'clean'.
Lev 19:37 KJV
(37) Therefore shall ye observe all my statutes, and all my judgments, and do them: I am the LORD.
It's a big subject Reynaldo, I'm sure others here can add much more to what I've written. Suffice it to say that you can shave your head bald provided you are not doing it for the purpose of other gods...
Shalom