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

Change validation method, as discussed on #2381