options: add a 'oneshot' 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=oneshot