d3dretrace: Handle ID3D11Device::OpenSharedResource*.

Similar to ID3D10Device::OpenSharedResource code.
specs: Fix DXGI_PRESENT_PARAMETERS::pDirtyRects spec.

It's an array.
specs: Add IDXGIKeyedMutex to interface list.
d3dretrace: Tweak RSGetViewports/RSGetScissorRects spec.

- pNum* arguments are InOut

- Ensure sideeffects is set to false (preventing crash due to the inability
to handle InOut params correctly.

Spotted by Zack.
specs: More tweaks to D3D11 specs.