liblog: return -EPERM if a log_is_loggable() returns false

This was the previous behavior, so retain it.

Bug: 119867234
Test: logging unit tests
Change-Id: I088f760cc274a4a42d72477eb4e2e8d23c613a8a
1 file changed