libcutils: fix a bug which when klog_write may be failed on the first.

N/A

Change-Id: I56bbd8629c489f4d9d64493f7aa44649c3af8ac8
Signed-off-by: liminghao <liminghao@xiaomi.com>
Merge "libcutils: fix a bug which when klog_write may be failed on the first."