Fix a bug to use clock_gettime()

:Release Notes:
Fix a bug to use clock_gettime()
Change return value check of clock_gettime().

:Detailed Notes:

:Testing Performed:
1. tried to add "timeout event" to sleepd like following

luna-send -f -n 1 -a my.test.app palm://com.palm.power/timeout/set '
{
    "key":"mykey",
    "uri":"luna://com.webos.notification/createToast",
    "in":"00:05:01",
    "wakeup" : true,
    "params":
         {
              "sourceId":"com.palm.activitymanager",
              "message" : "TEST~~!!",
              "noaction" : true
         }
}'

2. Change system time to 1hour later from now using "Setting application"

3. Notification doesnot occurred.

:QA Notes:

:Issues Addressed:
[GF-54721] clock_gettime() doesnot work correctly. (return ENOENT) on M14

Open-webOS-DCO-1.0-Signed-off-by: heekwon kang <hk.kang@lge.com>

Change-Id: I2140fc76fcd260c6f91763e8c865175ebab37029
Reviewed-on: https://g2g.palm.com/4177
Reviewed-by: DCO Verification
Reviewed-by: Heekwon Kang <hk.kang@lge.com>
Tested-by: Heekwon Kang <hk.kang@lge.com>
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>