Fixed MediaKeys creation code so that it can handle multiple SourceBuffers sending 'encrypted' events at once, and also handle being called while we're waiting for the createMediaKeys promise to resolve.