[os] waitForFinished waits infinitely in subprocess.system()

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>