Locks the token only when it's nearly expired.