Dynamic state of DNA topology is essential for genome condensation in bacteria