Move kline mask generation into its own function

This allows code that calls kline_add with a user/host pair to still use
the proper user@host for that specific user while avoiding code
duplication.
operserv/akill: use get_kline_userhost