unwind: limit the number of frames unwound

Fixes rhbz#1133907.

Signed-off-by: Martin Milata <mmilata@redhat.com>