gn2bp: fix collecting static libs dependencies

There were some flaws in the previous logic. Dependencies need to be
bubbled up for all targets, but only static_libs should be added to
them.

Test: update_results.sh
Change-Id: I98025a8a0720d34bc47a820bf45118c06acd64a0
3 files changed