Merge pull request #12462 from sepalani/net-force-shutdown Socket: Fix a nullptr dereference when operations are pending