Fix race condition and use sudo when installing prerelease mailtrap gem
Lock down external test cookbook dependencies