Generalise passing credentials for SO_PASSCRED and LOCAL_CREDS

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>