Refactored TestTLSStream.test_receive_invalid_max_bytes() to be less flaky