ALSA: timer: Fix race between read and ioctl