In T318819: When a mentor gets blocked, mark them as away, we ensured that blocked mentors are marked as away for the duration of the block. However, at Wikimedia wikis, users can also be globally locked. A global lock has similar impact to a block (locked users are effectively unable to participate in mentorship), but it impacts all Wikimedia wikis at once.
We decided to treat locked mentors in the same way as we already treat blocked mentors (see T318819).
Acceptance criteria
Given a Mentor receives a global lock,
Then their Mentor status is automatically set to "Away". The mentor cannot mark as active via Special:MentorDashboard.
Given a Mentor receives a global llock and their Mentor status is set to "Away",
Then if/when the lock is over, they have the option to set their Mentor status as "Active" (and they will have the same mentees as before the block).