dmaengine: at_hdmac: fix race while monitoring channel status