Made both glstack_realloc and tcpstack_realloc handle user-set limits,
and to back off by halves if the requested increment is not needed or
not permitted. (This was done only for glstack_realloc and the
system_limit.
While I was at it, I cleaned up some code, particularly in the calls
to glstack_realloc.