BitmapImage.UriSource locks the local file
<p>In my UWP app when the Model layer tries to update (overwrite) the file, 
it throws the <code>UnauthorizedAccessException</code> 'Access is denied' exception because the file is locked by the View’s <em>BitmapImage</em>.</p>

<p><strong>View</strong></p>

<pre><code>var bitmap = new BitmapImage();
bitmap.UriSource = new Uri("ms-appdata:///local/image.jpg");
</code></pre>

<p><strong>Model</strong></p>

<pre><code>private async UpdateImage()
{
   // this line throws!
   var file = await ApplicationData.Current.LocalFolder.CreateFileAsync("image.jpg", CreationCollisionOption.ReplaceExisting);
   ...
}
</code></pre>

<p>How can I stop <em>BitmapImage</em> from locking the local file used as its <em>UriSource</em>?</p>