vlib: convert foreach_vlib_main macro to be more gdb and clang-format friendly