general cleanup after the move from checkoutcheckin to lockunlock