misc: workaround to compile on qnap nas

quick and dirty hack to get tvheadend to compile on qnap nas as there is
no support for atomics