Add file reference counting sanity check
Fix file reference counting bug in physical address mode
Handle options before vm_init is called

This prevents ptbr etc. from being accessed when -p is passed.