[ticket/12890] Search by custom profile fields for members

Previous PR was for 3.1 branch, this is for 3.2 branch

[PHPBB3-12890](https://tracker.phpbb.com/browse/PHPBB3-12890)