aries | p1: config: add R/W semaphores

implemented using ARM atomic functions

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Id88277fa6de6d37294bd01d183db101c4044331d
Merge "aries | p1: config: add R/W semaphores" into android-4.4