altos/driver: Improve quadrature debouncing for mechanical encoders