Refactor: libcrmcommon: Ensure log levels are in uint8_t range
libqb expects all log levels to be in the uint8_t range (0 to 255).
Several Pacemaker functions and macros currently accept arbitrary
integers and don't validate that they're in-range. This commit fixes
that issue.
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>