Fixed iOS build caused by GetThreadList feature.

Summary:
Fixed iOS build caused by GetThreadList feature.