Fix bug while polling/cleaning event timers
Fix bug while polling/cleaning event timers

Change-Id: I207c2d32430f3576392df10a084003012a9594eb
Signed-off-by: Kishen Maloor <c62ddea3cd661a9268bff15f07fc2229cdc9ac02@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/22791

iotivity/iotivity-constrained,iotivity/iotivity-constrained,iotivity/iotivity-constrained,iotivity/iotivity-constrained