[PATCH v1 11/16] serial: pl01x: Modify pending callback to test if transmit FIFO is empty