Why does
my locked topic show 3 "pages" behind the lock, instead of 1?
if someone with moderation privileges locks their own topic, then you might expect it to read "Locked by the topic-starter" because, well, they are the topic-starter in that case, but, behind the scenes, the lock is recorded in the database as a moderator-lock, not a user-lock, so it'll read "Locked by a moderator".
I know it's not caused by your patch, but does this mean that a Mod who loses his Mod status after he locked his own topic can't unlock it anymore?