pickle/test/pickle-test.c: Tests were incorrectly stopping early after pickle__test1_write() due to faulty return code checks.
databases/pickle/unpickle.c: Fix pickle_unpickle failing due to 'occupied' not being updated after fread().