s3:smb2_server: fix drain_socket error handling