`addLayer(int, Layer, boolean)` doesn't need to be synchronized