From prison dramas like Visaranai to survival films like 127 Hours and horror titles like From, cinema has artfully drawn upon the primal fear of being restrained to a claustrophobic setting