Fix deadlock in eap_handler_free, and also simplify eap handler free