vmem: fix segfault in je_malloc() in multi-threaded applications

Due to the race condition in malloc_init_base_pool(), "base pool"
(aka "pool[0]") may be used when not yet initialized.
The problem is observed only for native je_malloc(). vmem_malloc()
and je_pool_malloc() are not affected.
Merge pull request #38 from krzycz/vmem-base_pool_init

vmem: fix segfault in je_malloc() in multi-threaded applications
common: fix few tests to work under bullseye

Fix execute tests under coverage tool bullseye:
-vmem_valgrind
-blk_nblock
-blk_rw
blk: clear error flag when setting zero flag

Ref: pmem/issues#4
Merge pull request #40 from plebioda/btt-clear-error-flag-when-setting-zero-flag

blk: clear error flag when setting zero flag
common: fix format strings for off_t and uint64_t

This fixes some warnings when using 32-bit compiler.
common: make all calls to pthread_*() uniform

1) Make all calls to pthread_*() uniform:
   - *_lock() - set errno to return value, call LOG() and error out,
   - *_unlock() and *_init() - set errno to return value and call LOG()
2) Change return type of lane_exit() to static void.
Merge pull request #41 from krzycz/common-print_formats

common: fix format strings for off_t and uint64_t
common: fix date format in rpm changelog
blk: only one flag allowed at the time

- clear other flags when setting any flag
- add unit tests

Ref: pmem/issues#4
Merge pull request #39 from ldorau/blk-check-return-pthread_mutex_lock

common: make all calls to pthread_*() uniform
Merge pull request #42 from plebioda/fix-date-format

common: fix date format in rpm changelog
Merge pull request #43 from plebioda/btt-clear-error-flag-when-setting-zero-flag

blk: only one flag allowed at the time
blk: check return value of pthread_mutex_unlock()
common: NVML renaming and library splitting

- rename typdefs: PMEMblkpool, PMEMlogpool, PMEMobjpool
- split libpmem into libpmem, libpmemblk, libpmemlog, libpmemobj
- rename trn => obj
- add benchmark building to make check target
- change functions _map() to _pool_open()
- update scope tests
- each library now has the environment variables:
    PMEM_LOG_{LEVEL,FILE}
    PMEMBLK_LOG_{LEVEL,FILE}
    PMEMLOG_LOG_{LEVEL,FILE}
    PMEMOBJ_LOG_{LEVEL,FILE}
- each library now has the *_check_version functions

[@andyrudoff made some additional changes to this commit:]
- remove superfluous nested includes
- remove extraneous comments (leftovers) in headers
- add calls to force library linking in traces_pmem unit test
Merge branch 'nvml-renaming'
pmem: interface cleanup

Drop flags argument from pmem_persist() and pmem_flush().
Add pmem_msync() for calling msync(), but passing in is_pmem
considered harmful -- that check is up to the caller.
pmem: updated man page with cleaned up API
pmem: add the memmove, memcpy, and memset variants

The non-temporal version isn't complete yet, so the normal
versions are used for now.
Merge branch 'master' of github.com:pmem/nvml