Simplified IO semaphore