fix straggling themelocks showing in pending queue (bug 864297)