[OpenMP] Use ID not index to identify taskgraphs in libomp runtime
In preparation for the following patches, this patch changes the key
used to identify taskgraphs from a monotonic index into an ID (stored
in a linear table).
Co-authored-by: Adrian Munera <adrian.munera@bsc.es>