Refactor: libs: Add pcmk__warn_multiple_name_matches.
This function just condenses code that existed in two places into a
single new function. While it can be unconditionally called, you
probably won't actually want to do that since callers will want to do
different things depending on whether there were multiple matches or
not.