Louisiana-Pacific records third-quarter loss