[entropy.spm] fix vdb handling wrt locking, fix several potential races