testcases/lib/cmdlib.sh: add tst_require_root() function

Replace is_root() with tst_require_root().

Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>