tests: allocator: Fix FDMemory portability issue
This fixes few issues in the test but mainly some portability issue reported on Ubutun. The test now uses a randomly name tempory file located into system default tempory location and uses glib wrappers when available.
Fixes !895 (merged)