Wrap JSContext() with JSLocker() lock

Make JSContext thread safe by wrapping it in a lock. Multithreaded programs cause peepdf analyses to randomly segfault without this.