[base] TokenShaper: API/implementation around timeout-mgnt improved and tests extended.