Overflow the fast-path lock slots
A backend holds a few relation locks in a fast path and falls back to the shared lock table when it needs more. pg_stat_lock counts the fallbacks.
task
Make one query lock every partition of lab.part_test, then flush pending statistics.