mlx4_core: Clean up error flow in mlx4_register_mac()