validate: Protect init function with a recursive mutex