[PATCH 6.12 086/354] bpf: Refactor stack map trace depth calculation into helper function