ALSA: seq: More protection for concurrent write and ioctl races