Add a test case to check the masking state in recovering

This would be a bug report rather than a merge request. I've attached a failing test case to demonstrate the issue.

The problem is that when recovering, the masking state of the retrying action is set to `MaskedInterruptible` even though the original action has been run in `Unmasked`. It would be nice if the action retried in `Unmasked` state.