netdb: Implement gethostent and related
Created by: jroivas
Currently musl is missing implementation of sethostent(), endhostent(), gethostent() and gethostent_r(), thus implementing them here.
Allows "getent hosts" to work, as well as possible other apps requiring them.