erlc: fix file:open/2 and file:close/1 TODOs

{ok, Fd} = file:open(Source, [read]) and file:close(Fd) must
succeed, or else the subsequent compile:file(Source, Opts) call
would also fail.
erlc: fix erl_syntax[_lib] catch all