remove unnecessary relase+lock cycle