Factory method for generating options from a flat array now can make them locked