Grain boundary pinning and glassy dynamics in stripe phases.