gettime: add some sanity checks to platform clock

Signed-off-by: Jens Axboe <axboe@kernel.dk>