replaced locked_alloc/free with a less generic alloc/free_secret
Windows implementations for locked memory allocation