Make sure we never have a negative expiration value in setex call