dialects.mysql.connection-manager: Use `connection._protocol._ended` state on $validate

Change validation method, as discussed on #2381
I didn't found any API regarding state checking.
There isn't any on `connection`, neither on `connection._protocol`
https://github.com/felixge/node-mysql/blob/master/lib/protocol/Protocol.js#L90