When can beneficial ownership take priority over a legal charge?