add a basic timer for local_capacity monitor and broadcast.

in Linux with timerfd support we use api from <sys/timerfd.h>. On other systems we use an attached thread running in the background and timing by POSIX sleep(3).