Enforce maxttl in APC do_set

APC interprets a TTL of 0 to mean forever. This caps it to the maxttl option.