SERVER-15586 Potential use-after-free in rollback

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Closes #821