Lifetime of OH masers at the tip of the asymptotic giant branch