ConcurrencyViolationError in UnitfulExt

I get the following pre-compilation error:

⠇ [00m:15s] PackageCompiler: compiling incremental system image┌ Error: Error during loading of extension UnitfulExt of Plots, use `Base.retry_load_extensions()` to retry.
│   exception = 1-element ExceptionStack:
ConcurrencyViolationError("deadlock detected in loading UnitfulLatexify -> UnitfulLatexify && UnitfulExt")
Stacktrace:
  [1] start_loading(modkey::Base.PkgId)
    @ Base ./loading.jl:1637
  [2] _tryrequire_from_serialized(modkey::Base.PkgId, path::String, ocachepath::Nothing, sourcepath::String, depmods::Vector{Any})
    @ Base ./loading.jl:1469
  [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
    @ Base ./loading.jl:1574
  [4] _require(pkg::Base.PkgId, env::Nothing)
    @ Base ./loading.jl:1938
  [5] __require_prelocked(uuidkey::Base.PkgId, env::Nothing)
    @ Base ./loading.jl:1812
  [6] #invokelatest#2
    @ ./essentials.jl:892 [inlined]
  [7] invokelatest
    @ ./essentials.jl:889 [inlined]
  [8] _require_prelocked
    @ ./loading.jl:1805 [inlined]
  [9] _require_prelocked
    @ ./loading.jl:1802 [inlined]
 [10] run_extension_callbacks(extid::Base.ExtensionId)
    @ Base ./loading.jl:1295
 [11] run_extension_callbacks(pkgid::Base.PkgId)
    @ Base ./loading.jl:1330
 [12] run_package_callbacks(modkey::Base.PkgId)
    @ Base ./loading.jl:1164
 [13] _tryrequire_from_serialized(modkey::Base.PkgId, path::String, ocachepath::Nothing, sourcepath::String, depmods::Vector{Any})
    @ Base ./loading.jl:1487
 [14] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
    @ Base ./loading.jl:1574
 [15] _require(pkg::Base.PkgId, env::Nothing)
    @ Base ./loading.jl:1938
 [16] __require_prelocked(uuidkey::Base.PkgId, env::Nothing)
    @ Base ./loading.jl:1812
 [17] #invokelatest#2
    @ ./essentials.jl:892 [inlined]
 [18] invokelatest
    @ ./essentials.jl:889 [inlined]
 [19] _require_prelocked
    @ ./loading.jl:1805 [inlined]
 [20] _require_prelocked
    @ ./loading.jl:1802 [inlined]
 [21] macro expansion
    @ ./lock.jl:267 [inlined]
 [22] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1797
 [23] top-level scope
    @ /tmp/jl_FIJiV8Hk7q:278
 [24] include(mod::Module, _path::String)
    @ Base ./Base.jl:495
 [25] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:318
 [26] _start()
    @ Base ./client.jl:552
└ @ Base loading.jl:1301

Is that a bug in Plots.jl ?

So far I cannot reproduce it without using PackageCompiler…

I got the same error message while creating a sysimage with my package.