Apply fix for devices with large socket buffers

The same fix as for ThreadInterruptTest from commit
d95341bb7bc13ee2a4c7a08d6c7f9944a8a51ae3, but made to
DisconnectTest.