core.c: Fix timer fd read error handling

If read size of data from timer file descriptor is
wrong, the distribution tree is not dumped to log.

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>