tests: only check Gemfile.lock if it exists

The test suite assumes that Gemfile.lock exists. However, the gemnasium
gem file on RubyGems.org does not contain a Gemfile.lock. Skip the test
if Gemfile.lock does not exist.
Set a pending flag if test is skipped
Merge branch 'gemfile-lock-optional'