Efficient support for in-place metadata in transactional memory