Partial revert of 7b59e09cf5eecda2029295db10fdc98dfb5dacc3.
Partial revert of 7b59e09cf5eecda2029295db10fdc98dfb5dacc3.

Switching the just opened connection to non-blocking mode
can cause "Lost connection to MySQL server at 'handshake:
reading inital communication packet', system error: 11",
where errno 11 is EAGAIN.

Signed-off-by: Henrik Grubbström <8c05419cf750eecebb57eee18827b7594fe78c97@grubba.org>

grubba/mariadb-connector-c,grubba/mariadb-connector-c,grubba/mariadb-connector-c