Add a mutex and sync call around import