Fix: Sometimes on Ubuntu Glance db initialised not properly

This is fix for issue with incorrect database sync migration on Ubuntu with PostgreSQL backend.

Signs of impact: Glance return 500 error on any request, PostgreSQL database doesn't contain migrations.