TC: more tolerate on the timeout tick in semaphore_dynamic

With system that has RT_TICK_PER_SECOND is 1000, it's easy to get one
tick error.