Fix the ordering of page footer links if the page is locked.

https://bugs.corefiling.com/show_bug.cgi?id=40263