Extend fix for #3419
Add support for configuring socket pipe connections in 'mysqli'

Supersedes PR #3415