[PATCH 5.10 101/227] counter: stm32-lptimer-cnt: fix error handling when enabling