First, airlock frames will not respond to red-stone current, thus you need an airlock controller to use an airlock.
Second, airlock controllers must either be in the frame: F F C F, or inside the space inside the frames:
F F F F
F . . . F
F C . . F
F F F F
for it too work.
Third...