Half bug, half bad design: try rotating the airlock after selecting it form your inventory bar but before building it (default mapped to the R key)