BZ-1022910 - Retrieving task instances when using PostgreSQL (Large Object facility requires transacitons and eager initialization) (cherry picked from commit df78e14ec901efa1f15acf38e1871f725179f25e)