dm-latency: minor fixes in lib_dm_io_latency.c

This commit fixes several warning reported by gcc -Wall option.