It doesn't matter whether there are any males in the room for a plant to hermaphrodite. Since feminised seeds come from hermaphrodite it is obvious to say that the seed will carry the hermaphrodite gene.
If the conditions, light leaks etc become a problem this gene can become exposed therefore...