JailDAM: Jailbreak Detection with Adaptive Memory for Vision-Language Model