Flush handlers before running db-sync:

so that keystone-manage, nova-manage, etc. are installed.