[PATCH 5.13 119/351] habanalabs: remove node from list before freeing the node