Add support for configuring socket pipe connections in 'mysqli'

Supersedes PR #3415