def METHOD_NAME(lockfd, data):
    if lockfd is None:
        return
    try:
        _lockfd = os.dup(lockfd)
        with os.fdopen(_lockfd, "w+") as ofile:
            ofile.seek(0)
            try:
                lock_data = json.load(ofile)
            except ValueError:
                return
            lock_data["progress"] = data
            ofile.truncate(0)
            ofile.seek(0)
            json.dump(lock_data, ofile)
            os.fsync(_lockfd)
        os.close(_lockfd)
    except Exception:
        return