trim: Fix early-bailout bug when accepting both --calls and --frames
trim: Fix early-bailout bug when accepting both --calls and --frames

The trim code was inappropriately bailing once either list was
exhausted, before also exhausting the user's other requested list.

This fixes the traces/trim-frames-and-calls test recently added to the
apitrace-tests repository.

Thanks to Eric Anholt for reporting this bug.

EoD/apitrace,apitrace/apitrace,apitrace/apitrace,schulmar/apitrace,tuanthng/apitrace,PeterLValve/apitrace,trtt/apitrace,schulmar/apitrace,trtt/apitrace,surround-io/apitrace,EoD/apitrace,swq0553/apitrace,EoD/apitrace,joshua5201/apitrace,trtt/apitrace,joshua5201/apitrace,tuanthng/apitrace,tuanthng/apitrace,schulmar/apitrace,swq0553/apitrace,surround-io/apitrace,schulmar/apitrace,swq0553/apitrace,tuanthng/apitrace,apitrace/apitrace,PeterLValve/apitrace,trtt/apitrace,apitrace/apitrace,surround-io/apitrace,EoD/apitrace,swq0553/apitrace,schulmar/apitrace,trtt/apitrace,PeterLValve/apitrace,PeterLValve/apitrace,swq0553/apitrace,tuanthng/apitrace,joshua5201/apitrace,surround-io/apitrace,EoD/apitrace,surround-io/apitrace,joshua5201/apitrace,joshua5201/apitrace