Linux cancel blocking read issue