Fix failure in QA test 498 with multiple queues.
Fix failure in QA test 498 with multiple queues.

When multiple queues in use, if realloc moved the memory
the base queue lives at then any backreferences via TAILQ
pointers become invalid.  Fixed by re-initialising queues
when needed such that this can no longer happen.

andyvand/cygpcpfans,edwardt/pcp,ryandoyle/pcp_original,wuliming/pcp,ryandoyle/pcp_original,andyvand/cygpcpfans,ryandoyle/pcp_original,wuliming/pcp,andyvand/cygpcpfans,prasincs/pcp,wuliming/pcp,tjanez/pcp,mbaldessari/pcp,tjanez/pcp,mbaldessari/pcp,andyvand/cygpcpfans,aeg-aeg/pcpfans,andyvand/cygpcpfans,adfernandes/pcp,aeg-aeg/pcpfans,edwardt/pcp,mbaldessari/pcp,mbaldessari/pcp,aeg-aeg/pcpfans,adfernandes/pcp,ryandoyle/pcp_original,aeg-aeg/pcpfans,tjanez/pcp,edwardt/pcp,aeg-aeg/pcpfans,prasincs/pcp,adfernandes/pcp,prasincs/pcp,ryandoyle/pcp_original,wuliming/pcp,mbaldessari/pcp,adfernandes/pcp,andyvand/cygpcpfans,andyvand/cygpcpfans,aeg-aeg/pcpfans,edwardt/pcp,wuliming/pcp,edwardt/pcp,aeg-aeg/pcpfans,adfernandes/pcp,edwardt/pcp,wuliming/pcp,adfernandes/pcp,tjanez/pcp,tjanez/pcp,ryandoyle/pcp_original,wuliming/pcp,andyvand/cygpcpfans,tjanez/pcp,ryandoyle/pcp_original,tjanez/pcp,edwardt/pcp,prasincs/pcp,wuliming/pcp,prasincs/pcp,aeg-aeg/pcpfans,prasincs/pcp,prasincs/pcp,edwardt/pcp,mbaldessari/pcp,prasincs/pcp,ryandoyle/pcp_original,adfernandes/pcp,adfernandes/pcp,tjanez/pcp