Adding sexp_current_input_port(ctx) and sexp_current_output_port(ctx) macros.
Adding exception-protect.
Adding file-truncate.
Adding call-with-locked-file utility.