Add fancy locking to oauth2client.

Reviewed in http://codereview.appspot.com/4919049/
7 files changed