pid: use struct_size_t() helper