pinned: Add CloseWrite support

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>