[COOK-1614] don't install pg gem deps immediately but sequentially

since the chef_gem resource installs immediately, we must be sure to
only trigger the installation once the needed dependencies are in
place otherwise we will encounter numerous race conditions