local: Move timeout check after enabling the buffer

We'll always get a timeout when checking data is available if the buffer has not
been enabled yet. So move this check after enabling the buffer.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>