rmdir init restart-lock directory sooner

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>