samples: bpf: Refactor test_cgrp2_attach -- use getopt, and add mode