Protect AngelScript module creation/deletion with a mutex as AngelScript itself doesn't do that.