Make sure JSInfo* methods are called in the right threads