[components][serial] fix do RT_DEVICE_CTRL_CLOSE cmd when close serial device regardless of DMA config
[components][serial] fix do RT_DEVICE_CTRL_CLOSE cmd when close serial device regardless of DMA config

hezlog/rt-thread,ArdaFu/rt-thread,geniusgogo/rt-thread,RT-Thread/rt-thread,geniusgogo/rt-thread,ArdaFu/rt-thread,weety/rt-thread,hezlog/rt-thread,RT-Thread/rt-thread,weety/rt-thread,nongxiaoming/rt-thread,geniusgogo/rt-thread,geniusgogo/rt-thread,nongxiaoming/rt-thread,nongxiaoming/rt-thread,ArdaFu/rt-thread,armink/rt-thread,hezlog/rt-thread,nongxiaoming/rt-thread,hezlog/rt-thread,weety/rt-thread,hezlog/rt-thread,hezlog/rt-thread,ArdaFu/rt-thread,ArdaFu/rt-thread,geniusgogo/rt-thread,geniusgogo/rt-thread,RT-Thread/rt-thread,armink/rt-thread,armink/rt-thread,armink/rt-thread,weety/rt-thread,geniusgogo/rt-thread,weety/rt-thread,armink/rt-thread,weety/rt-thread,weety/rt-thread,ArdaFu/rt-thread,RT-Thread/rt-thread,hezlog/rt-thread,nongxiaoming/rt-thread,RT-Thread/rt-thread,nongxiaoming/rt-thread,RT-Thread/rt-thread,armink/rt-thread,RT-Thread/rt-thread,armink/rt-thread,ArdaFu/rt-thread,nongxiaoming/rt-thread