* src/vm/finalizer.c (finalizer_run): Fixed for handles and added boehm-hack.
(finalizer_thread, finalizer_notify): Added debug output.
* src/vmcore/options.c (opt_DebugFinalizer): Added debug switch.
* src/vmcore/options.h (opt_DebugFinalizer): Likewise.
* src/threads/native/lock.c (lock_hashtable_remove): Also frees the lock record.
(lock_record_finalizer): Same as for finalizer_run above.
(lock_hashtable_get) [ENABLE_GC_BOEHM]: Fixed registration of finalizer.
* tests/gc/LockRecords.java: Added new testcase for lock records cleanup.