tests: Fix flaky test_resolve_swhids_snapshot_context
Pick the first branch and release in the snapshot instead of randomly
selecting it. As multiple branches can point to a same revision, this
ensures the same branch name will be picked when resolving a SWHID to
a browse URL.