core: change policy incrementation to prefix op

Using prefix incrementation makes sure a policy with id == 0 is
invalid.
os: trace_fs [WIP]