Fixes: Implement proper refcounting and locking for HGLOBAL based IStream