Fix potential race in access log tests