init and fini locks