[Samples] Fixed issue with Direct3D10/WPFHost sample when user locks computer and logs in back (github issue #193).