Rewrite some of the sceNetAdhocctlAddHandler/DelHandler code

Switch handlers from vector to std::map, add a max handler count, and return an error if too many handlers exist.