core_mem.diff
Lock test

Related to #646.
base-linux: use the 'futex' syscall for blocking

With this patch, the 'futex' syscall gets used for blocking and unblocking
of threads in the 'Lock' implementation.

WIP for issue #646.