* nsterm.m (ns_select, ns_read_socket): Use unwind_protect to decrease
apploopnr.
* nsterm.m (ns_draw_window_cursor): Adjust y for hbar cursor only if smaller than
line height (Bug#17977).