change to allow thread-safe methods in jsi work in terracotta