Add the initialization and destruction of the lock inside the FP_tree
class