Fix `Tests_Paginate_Links` tests by properly setting up / tearing down permalink structure.

Props jorbin.
Fixes #29636.


git-svn-id: https://develop.svn.wordpress.org/trunk@29913 602fd350-edb4-49c9-b593-d223f7449a82