[#2013] Fix a race which could happen to have the worker Thread interrupted during close(...) when using OIO