Fix sync_disk to get the enabled disk first

Ticket:	#4430