APGL4SR: A Generic Framework with Adaptive and Personalized Global Collaborative Information in Sequential Recommendation