fix: add cancel function to the Timer API to make it behave correctly with finalizers and selectables
#24266
| Job | Run time |
|---|---|
| 3s | |
| 3s |