Fixed MVar retry behaviour.

Shadowing for the loss. When retrying it incorrectly
used the last value it saw rather then the value it
was attempting to write.

Fixes #314.
Added note to MVarTest.