posix-clock: Fix return code on the poll method's error path