Repo: allow synchronous or asynchronous Release.checkRepoState

We need this method to be asynchronous for [checking the Sizzle version in jQuery core](http://bugs.jquery.com/ticket/14915). This change is backwards-compatible.