Write Queue

This adds a method so that CDM can manage a write queue that allows only a single write to happen simultaneously.