bmod_state: fixed kwargs, added lock, removed some conditions