have get_scm_cred wait up to a second for client

also fix up the test.sh.  still not quite right.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>