Avoid division by zero in posix target

The tick duration in microseconds may be calculated to zero depending on the
processor clock speed.

This patch sets it to 1 if the value is 0.

Signed-off-by: Vinicius Tinti <viniciustinti@gmail.com>