update_lock_stat
update_lock_stat(stat_fd, pid, end_ts, aggr_mode,
update_lock_stat(stat_fd, -1, end_ts, aggr_mode,