Correct low probablility resource leak

:Release Notes:
Close lock file if open succeeds but lockf() fails.

:Detailed Notes:
Error detected in Coverity run

:Testing Performed:
Compile Only

:QA Notes:

:Issues Addressed:
[GF-52090] pmklogd: Low Probability Resource Leak

Open-webOS-DCO-1.0-Signed-off-by: Keith Derrick <keith.derrick@lge.com>

Change-Id: Icb2085fbe10442fdb82182f091aafa0e9f8a092c
Reviewed-on: https://g2g.palm.com/3969
Reviewed-by: DCO Verification
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Tested-by: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Gayathri Srinivasan <gayathri.srinivasan@lge.com>
Tested-by: Gayathri Srinivasan <gayathri.srinivasan@lge.com>