I don't pretend to understand this stuff, but wouldn't a real mass-spring system slowly stop, due to friction, air resistance, heat dissipation, ...? So a real system wouldn't be periodic.