lavc/hevc: use atomics for wpp_err