Serialize calls to builder.build (which is not thread-safe)