Ld fixes

Hi, I submit two fixes :
1) For a concurrency problem that appeared during variable creation  in a getup where JaCoP was running on 10 threads during 8 hours for 2300 problem instances.
2) For a problem that a solution of a nested child search (master->child1->child2) was not restored after the optimization finished.