Concurrent access to sql script

add lock on access to sql script file in order to enable the concurrent access from multithread client (where the client use Parallel to update N databases )