macsec: fix memory leaks around rx_handler (un)registration