mysqlnd: detect mysql unix socket path with mysql_config

When the mysql extension is disabled, there is no automatic detection
of the mysql unix socket path.
The mysqli/mysqlnd/pdo_mysql use a hardcoded /tmp/mysql.sock path.

This adds automatic detection of the mysql unix socket path in mysqlnd
with mysql_config --socket, and makes pdo_mysql use it as well.