dmaengine: fix NULL pointer in channel unregistration function