Crashes when mounting and unmounting IoStore containers in different threads

Hi Hugo,

Thank you! I’ve already implemented kinda fix myself - simply removed thread_local and sprinkled some locks around - and it seems to work. But I will test your fix too.

Best regards,

Ilya