Prevent race condition on common resources used during execution of Makefile.