We are having the same issue as here:
You can reproduce with your SampleApplication by creating an event handler for the Ribbon.Loaded event, and setting the IsApplicationMenuOpen property in the handler.
It seems like the Loaded event is triggered when the pc is remoted to.
Here's how I was reproducing:
PC1 starts the application
PC1 remotes to PC2
PC2 remotes to PC1 (Which will lock PC1)
Log in to PC1.