RemoteStats read s.errors and s.lastError after releasing s.mu,
while Error writes both fields under the write lock, so polling
stats concurrently with a failing transfer raced. Move the
lastError read inside the existing read-lock section and guard
against a nil lastError, which Errors() can leave behind when it
bumps the error count on its own. Adds a regression test that
runs concurrent Error and RemoteStats calls under the race
detector.