drawing_ctx: use refcell for the defs field

3 jobs from defs in 7 minutes and 46 seconds (queued for 78 minutes)
Status Job ID Name Coverage
  Test
passed #74222
fedora:test

00:07:23

 
  Lint
manual #74224
allowed to fail manual
clippy
passed #74223
rustfmt

00:00:22