dev/sg: more lenient postgres check
Created by: bobheadxi
Spotted in https://github.com/sourcegraph/sourcegraph/runs/6867084149?check_suite_focus=true#step:4:357, where it seems we just aren't waiting long enough for the database to come online.
Test plan
Integration tests