add tool to forbit copying.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>
fix bug when owning the buffer.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>