Adjust thread count based on network connection and airplane mode support.