A HARD lockout, not a warning. Folks/ignorant/inattentive/malicious can and will ignore warnings. And the downside is that it‘s not detrimental to THEM, but to everyone else.
But in addition to it being hard, the lockout should also (like an online banking session) time out (with a huge warning) so that no one user could inadvertently lock the wiki page “forever.” Wiki edits should also get plunked into a Draft location so that time-outs are saved.