close db migration session

Explicitly close sessions in db migration 022. With the postgresql backend
if the session is not closed explicitly it leaves a user of the db behind
which can cause problems later on

Fixes bug #1158544

Change-Id: I389b83397addc5901aa94b584856fbd7f5cef485
Merge "close db migration session"