Fixed a deadlock in privileged.c