[PATCH 5.10 086/243] habanalabs: remove node from list before freeing the node