shells: fix exitcode_trapN tests to avoid races

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
4 files changed