[FastCgi] Stronger lock code