Instrumental variable estimation of dynamic treatment effects on a duration outcome