Some of my sub directories (a,A,b,B,c,C, etc.) inside the attachments folder were owned by the root user, this may be the cause and explain why this error only occurs sometimes. I'm guessing that OsTicket picks one of the folders at random or via some other logic and if that folder has an owner of root it gives the unable to move error. Fingers crossed this fixes it.