Fix a potential crash during stress tests. TRQ-1606.
Merge branch '4.2.0' of https://github.com/actorquedeveloper/torque into 4.2.0