Refine logs output format

:Release Notes:
- Add curly braces if there are not key-value pairs.
- Add brackets if there is not a pid and tid.
- Add curly braces for empty kv-pairs in PmLogString_()
  as well.
- Bug fix routine for message id validation.

:Detailed Notes:
- For log format consistency, add curly braces and brackets if
  there are not key-value pairs and [pid:tid].
- All logs will contain [], {}, debug messages as well.
- _PmLogMsgKV signature changed that is removed unused parameter.

:Testing Performed:
Compiled locally and tested on local and TV.
Verified in the log file, properly displayed in /var/log/messages.

:QA Notes:

:Issues Addressed:
[GF-9842] Refine logs output format for parsing

Open-webOS-DCO-1.0-Signed-off-by: Hongjeon Ha <hj.ha@lge.com>

Change-Id: I129bacc3a239d373664ced80aa84c4d7aedfa308
Reviewed-on: https://g2g.palm.com/2889
Reviewed-by: Build Verification
Reviewed-by: Hongjeon Ha <hj.ha@lge.com>
Tested-by: Hongjeon Ha <hj.ha@lge.com>
Reviewed-by: Gayathri Srinivasan <gayathri.srinivasan@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>