Move CompressionWrapper into Serializer
Fix #109, file not unlocked after db close on windows.