Merge branch 'wip/tingping/socketclient-cancel-2' into 'master'

gsocketclient: Fix potential critical when cancelling connect

Closes #1747

See merge request !783

(cherry picked from commit b17436d9)

313e7cba gsocketclient: Fix potential critical when cancelling connect
8 jobs for cherry-pick-b17436d9 in 22 minutes and 30 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build
passed #292696
cross-android_api21_arm64

00:06:55

passed #292697
cross-android_api28_arm64

00:01:11

passed #292698
cross-mingw64

00:07:52

passed #292695
fedora-x86_64

00:11:24

passed #292701
freebsd-11
freebsd-11-x86_64

00:03:50

passed #292699
win32
msys2-mingw32

00:13:12

passed #292700
win32
vs2017-x64

00:08:47

 
  Coverage
passed #292702
coverage

00:03:12

74.8%