[ASan] fix compilation on Mac by adding a missing pwrite parameter.