SERVER-8864 Fixed failing unit test 'sock_test'