Merge "liblogcat: avoid double close."