nghttpx: Use std::shared_ptr to share cached time

To ensure that cached time buffer is not altered while referencing it,
we rely on inerlocking in std::shared_ptr to acheive this.