add scopebuffer

This is an alternative to https://github.com/D-Programming-Language/phobos/pull/1911 , adding it to druntime instead.