(bug #24214) mediawiki.searchSuggest: Support user search namespace preferences

Added function to filter namespace preferences from mw.user.options.