Sounds like you need at least two switches, so you can indicate locked, unlocked, and "somewhere inbetween".