aries | p1: staging: sync: add synchronization framework

moved from drivers/base
backport format from mainstream (read/copied)

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I2283081a76f27cf9f2564a54f947717b754d8780