Port set_is_lockable() to C++ and javascript, eliminate tabs