common/cmd_misc.c: fix return code of sleep command