constants: lock and unlock