Detect recursive trace calls.