bus/policy: use hash tables for checking policy

No match.