pylon:
I don't know why you wanna display a boolean information (locked/unlocked) using PWM (which is kind of analog output). What's your intention there?
The point of the lock unlock was visual indicators using LED's Red for locked Green for unlocked, Wanted them to pulsate
during servo rotation. Does that help?