Add $user param to SpecialPageFactory::getRestrictedPages

This avoids the use of $wgUser

Change-Id: I5cc85391710f6e6967d78825fc8a3eda0e15a1a1