Avoiding concurrent modiufication to device map