Add a wrapper for the RX thread flush condition. Change-Id: I0358c6cafaa6bc55f443e07afce0d0bb58d301c7 CRs-Fixed: 2783960