[COMMANDS] Make functions internal to commands as static

As-per our coding convention internal (or non-public or non-exported)
functions of any module should be static. Some how we missed this in
some of our commands hence this patch.

Signed-off-by: Anup Patel <anup@brainfault.org>