Fix BZ55413 by ensuring the returned value is number of event/sockets pairs

git-svn-id: https://svn.apache.org/repos/asf/tomcat/native/branches/1.1.x@1441792 13f79535-47bb-0310-9956-ffa450edef68