[kmf-system-test] Improved command execution waiting for command completion

Change-Id: Ie6c8cb3ba06ecafa0bd88a6d08380e17dc68c0fa