can: mcp251x: avoid write to error flag register if it's unnecessary