options: add a 'once' idle mode

This allows to make mpv wait for file open events at start but close
after it is done playing the first playlist.
cocoa: bundle: use idle=once