Support instrumentation with a pollyfill fallback

Uses ActiveSupport::Notifications when available, otherwise falls back
to using a dummy method that simply yields.