Add a lock to the FP_tree class, in order to protect the CRITICAL block
of OpenMP