CPLOpenShared() doesn't behave nicely in a multi-threaded scenario
|Reported by:||Even Rouault||Owned by:||warmerdam|
|Severity:||normal||Keywords:||CPLOpenShared VRTRawRasterBand threads|
VRTRawRasterBand uses CPLOpenShared() to open the raw file. If 2 threads open the same VRT, they will currently share the same handle to the raw file, which will lead to chaos.
To avoid that, CPLOpenShared() must take into account the thread ID.