target: Convert ->transport_wait_for_tasks usage to transport_generic_free_cmd