[M] Change in libosmocore[master]: soft_uart: fix the Rx flushing logic, add a unit test