Interplay between local dynamics and mechanical reinforcement in glassy polymer nanocomposites