[PATCH 6.5 133/191] serial: core: Fix checks for tx runtime PM state