memtrap: properly lock access to memtrap changer