qa/src/recon.c: avoid infinite loops
qa/src/recon.c: avoid infinite loops

Set loop limit in the 2 loop forever blocks and die if limit
reached.

adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp