fix the logic of removal from print-remaining list
fix the logic of removal from print-remaining list

use mutex to lock the shared resource and remove the design from the list as early as possible.

efabless/openlane,efabless/openlane,efabless/openlane,efabless/openlane