[PATCH 5.12 104/292] habanalabs: remove node from list before freeing the node