Translucency and Post Processing issues

For the window material there is an option that allows transparent materials to write in custom depth. Without it, translucency does not allow to write to custom stencil. But actually, last time I tried this feature it was bugged and caused flickering.