Refactor: libcrmcommon: best practices for panic_local()
Avoid unnecessary variables, and improve log messages, comments, and formatting