A regression test for [BUGID:1551].

The ORB might deadlock if one tries send messages while handling
exceptions in AMI. Now the bug has been fixed and this test
should hang.