test: Actively wait for lock file create/delete
Testing on highly loaded machine may fail on lock file being
created or deleted later than expected. Proposed solution is
implementation of active waiting (with timeout) until lock file
is created/deleted.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>