liblog: O_CLOEXEC flag on opens

(cherry pick from commit 78786da116064e6a2b7bb768e1eb77f3804eace4)

Bug: 28455828
Change-Id: Ic00101a6192aab7271cb0c3461e249a77d7f29ed
4 files changed