select: add a timespec_add_safe() function