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

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

CoreFiling/reviki,ashirley/reviki,strr/reviki,strr/reviki,ashirley/reviki,CoreFiling/reviki,strr/reviki,ashirley/reviki,strr/reviki,ashirley/reviki,strr/reviki,ashirley/reviki,CoreFiling/reviki,CoreFiling/reviki,CoreFiling/reviki