lock initialization routine