ld_kred, algoritam semafora 2