trap: Preserve parent traps for trap-only command substitution