postgres/gentoo: run postgres in bg
postgres/gentoo: run postgres in bg

This spawns a postgres instance in the background in a separate thread and
signals/waits for 2 events:

* pg_up: The postgres-server is up and running.
* test_ready: The main thread has completed its measurements.

simbuerg/benchbuild,simbuerg/benchbuild