Make localhost override configurable by introducing mysqlnd.localhost_override option.