Added a lock count to allow multiple nested locking in a single process
Added tests/run.scm, which provides testing of basic functionality.
Improved construction of safe-mem objects by moving all of the hardcoded flags and modes and whathaveyou into the constructor.
Fixed the pass counting.