8043158: Crash in CodeSweeperSweepNoFlushTest in CompileQueue::free_all()

Acquire lock before calling notify()

Reviewed-by: twisti, thartmann
1 file changed