add locks to wantlist to avoid race condition