Refactor: libcrmcluster,attrd: functionize removing node from both caches
This future-proofs against a potential use-after-free (not possible with current code) and isolates cache management better.