Rewrite universal_fulfills_requirement

Performance considerations inspired by Marko Lindqvist <cazfi>

See patch #4940

git-svn-id: svn://svn.gna.org/svn/freeciv/trunk@25578 a0f10bec-cc02-0410-94fc-a9cfff90b4cd