Add block-id-allocating constructors for alt_buf_lock_t.