Attempt to fix closure-related test failures in PostgreSQL.
Merge branch 'master' of https://github.com/Evolveum/midpoint