test: sleep for 1 second before killing deadloop

Sometimes, pkill get run first before ktap and return 1, which
leaves the deadloop running forever.

Signed-off-by: Qingping Hou <qingping.hou@gmail.com>