backend: if we can't grab stat_mutex, report a deadlock error and exit