Improve GUI of flash_pvt

- add the progress bar.
- re-factoring the enable/disable controller of GUI components.
- fix GUI hang issue by multithreading.
- destroy the GUI root element before quit the tk-controller.

fixed #299