db.mapper.base: Fix locking

Well, the originally committed "locking" code is useless since the locks
are *instance* variables instead of *class* ones... Fixed by introducing
a lock manager singleton.
db.mapper.base: make findall() class method
examples/hello: update call of findall()
Merge branch 'mapper-fix'