Fix some bugs in the _Qp_sqrt implementation that would limit the accuracy
of the result in many cases.  From FreeBSD allbeit with some changes to
keep the coding style consistent.  This fixes the asinhl(4) issue reported
by dickman@ on tech@.