android: logger: enforce GID and CAP check on log flush

Restrict log flushing to those in the logs group, or
anyone with CAP_SYSLOG.

Signed-off-by: Charndeep Grewal <csgrewa@tycho.ncsc.mil>
Change-Id: I5d6977d1c0d60ffe8487771cc195789e5db95454