Sleeping is odd in threads