[Ide] Lock shared serializer.
AFAIK the serializer isn't thread safe yet - but should be called most
of the time from the same thread anyways.