Adding basic support for v7m sync primatives and mutex convenience functions.