Making JGitAPI's checkout failure consistent with CliGitAPI

This pull request is altered version of #17, and changes behavior of JGitAPIImpl to throw GitException on git checkout lock failure.
Thus enabling git-plugin to catch it and throw IOException, which invokes SCM-failure-retry feature.