[test] library/pg.t: handle plan for the 3 error cases

Some smokers run 43, some 40 tests.
Use no_plan and handle the earlier exits properly.
3 error cases: no libpg.so, service stopped, no nci thunks.