Linear Stability of Spatially Periodic Parallel Flows in Bounded Domains