pg_dump is never used by the application.
For quartz, you don't need that at all. I was just pointing the origin of the error in the libresource part. But it don't explaned at all what lock your database ?
Have you looked in google "quartz lock database" ?
Regarding the libresource code, I've already said the important stuff.