Assignable buttons cannot be locked with the parameter lock. But you can do that with the Freeze option.
1. Set the assignable button to the desired status
2. Press the Direct Access button then the Freeze button
3. Check the Assignable Butons box
4. Activate Freeze (red light) while calling registrations, or keep it active at all times