A transfer lock is a flag at the registrar that refuses any attempt to move the domain to another company. It is the single most effective protection a domain has, it costs nothing, and it should be on at all times except the few days you are deliberately transferring the domain away.
Turn it on or off on the domain's page in Domains.
Why the pill says "Locking…"
Registrars accept the change immediately and apply it a beat later. Rather than tell you it is done and hope, the page shows the change as pending and checks back with the registrar every few seconds until it agrees. When it does, the pill changes on its own.
If the registrar has not applied it after a minute and a half, the page says so plainly rather than leaving you watching. That usually means the registrar will not take the instruction from here, and we can do it directly — open a ticket and say which domain.
Not every extension has one
Some registries have no lock at all. Where that is the case the control is not offered, because a button that reports success and changes nothing is worse than no button.