cellular: refactor out modem/common
at-unix: fix pthread_cond_timedwait() invocation